import { http } from "@/utils/http";
import { AxiosPromise } from "axios";
import { ICustomerDetail } from "@/views/home/type";

export const customDetail = (id: string): AxiosPromise<ICustomerDetail> => {
  return http.request({
    url: "/wiki/custom/" + id,
    method: "get"
  });
};


export const queryQccInfo = (keyword: string): AxiosPromise<any> => {
  return http.request({
    url: '/wiki/custom/queryQccInfo/' + keyword,
    method: 'get'
  });
};

export const synCbeInfo = (zhName: string, sourceId: string): AxiosPromise<any> => {
  return http.request({
    url: '/wiki/custom/synCbeInfo',
    method: 'get',
    params: { zhName, sourceId }
  });
};